#ifndef __qylambdaeditor__
#define __qylambdaeditor__

#include <QMainWindow>

class QyEditorBase;
class QyConfigurator;
class QySourceNavigator;
class QDockWidget;

class QyMPlayer : public QObject {
	Q_OBJECT
public:
	QyMPlayer( const QString & fileName, QObject * parent=0 );

public slots:
	void play();

private:
	QString p_fileName;

};

/*! \class QyLambdaEditor
	\brief Главное окно прокраммы.

*/

class QyLambdaEditor : public QMainWindow {
	Q_OBJECT
public:
	QyLambdaEditor(); //!< Конструктор
	~QyLambdaEditor();

	void restoreSettings();

private slots:
	void on_newSectionAction_triggered();
	void on_readSettingsAction_triggered();
	void on_tambourineAction_triggered();
	void on_toggleSnAction_triggered( bool checked );
	void on_toggleSnSocusAction_triggered();

private:
	void createUi();
	void createMenu();

	QyEditorBase * editorBase;
	QyConfigurator * configurator;
	QySourceNavigator * sourceNavigator;
	QDockWidget * sourceNavigatorDock;

};

#endif/*__qylambdaeditor__*/
